wafCreate
Description
Purchase resource package.
Request Method
POST
Request Path
/customer/waf/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
period | BODY | integer | Yes | No sample value for this parameter. | purchase duration |
cost | BODY | number | Yes | No sample value for this parameter. | order amount |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method |
voucherInstanceId | BODY | string | No | No sample value for this parameter. | voucher of the order |
pricingCycle | BODY | string | Yes | No sample value for this parameter. | billing cycle |
couponInstanceId | BODY | string | No | No sample value for this parameter. | coupon of the order |
autoRenewalFlag | BODY | boolean | Yes | No sample value for this parameter. | auto renew |
capacity | BODY | integer | Yes | No sample value for this parameter. | subscription resource package size |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"instanceId":"waf-2022072618493400001","orderId":2.02207261849340006E+18}` | No description for this parameter. |
resultCode | string | 0 | result code |
resultMsg | string | success | No description for this parameter. |
Example
Successful Response example
{
"result":
{
"instanceId":"waf-2022072618493400001",
"orderId":2.02207261849340006E+18
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}